/* body */
body {
    position: relative;
    min-width: 320px;
    max-width: 540px;
    margin: 0 auto;
    padding-top: 89px;
    background-color: #f5f5f5;
    font-size: 14px;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

* {
    -webkit-tap-highlight-color: transparent;
}

input {
    -webkit-appearance: none;
}

img,
a {
    -webkit-touch-callout: none;
}

p {
    margin: 0;
}
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.top-tips {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 45px;
    line-height: 45px;
    background-color: #333;
    color: #fff;
    text-align: center;
    z-index: 1000;
}
.top-tips > div {
    float: left;
    height: 100%;
    text-align: center;
    line-height: 45px;
}
.top-tips > div:nth-child(1) {
    width: 8%;
}
.top-tips > div:nth-child(1) img {
    width: 10px;
}
.top-tips > div:nth-child(2) {
    width: 10%;
}
.top-tips > div:nth-child(2) img {
    width: 30px;
    vertical-align: middle;
}
.top-tips > div:nth-child(3) {
    width: 57%;
}
.top-tips > div:nth-child(4) {
    width: 25%;
    background-color: #f63515;;
}

.search-box {
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    height: 44px;
    background-color: tomato;
    z-index: 1001;
}
.search-box > div {
    float: left;
    height: 100%;
    text-align: center;
    line-height: 44px;
    color: #fff;
}
.search-box > div:nth-child(1) {
    width: 45px;
}
.search-box > div:nth-child(1) span {
    display: block;
    width: 100%;
    height: 100%;
    background: url(../images/s-btn.png) no-repeat center/22px auto;
}
.search-box > div:nth-child(2) {
    position: relative;
    width: calc(100% - 90px);
    height: 30px;
    margin-top: 5px;
    border-radius: 15px;
    background-color: #fff;
}
.search-box > div:nth-child(2) span {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 20px;
    margin-top: 5px;
    background: url(../images/logo2.png) no-repeat center center/20px auto;
    border-right: 1px solid #ccc;
}
.search-box > div:nth-child(2) i {
    position: absolute;
    left: 35px;
    top: 6px;
    width: 18px;
    height: 18px;
    background: url(../images/jd-sprites.png) no-repeat -80px 2px/200px 200px;
}
.search-box > div:nth-child(2) input {
    position: absolute;
    top: 0;
    left: 55px;
    padding: 0;
    padding-left: 1em;
    border: none;
    height: 30px;
    outline: none;
}
.search-box > div:nth-child(3) {
    width: 45px;
}

.banner {
    /* margin-top: 89px; */
    position: relative;
    height: 187px;
    overflow: hidden;
}
.banner .banner-bg {
    position: absolute;
    left: -5%;
    width: 118%;
    height: 183px;
    border-bottom-left-radius: 10%;
    border-bottom-right-radius: 100%;
    background-image: linear-gradient(0deg,#f1503b,#c82519 50%);
}
.banner ul {
    position: relative;
    margin: 0;
    list-style: none;
}
.banner ul li {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 187px;
    padding: 25px 3.33% 0;
    box-sizing: border-box;
}
.banner ul li:nth-child(2) {
    left: 100%;
}
.banner ul li:nth-child(3) {
    left: 200%;
}
.banner ul li a {
    display: block;
}
.banner ul li a img {
    display: block;
    width: 100%;
    border-radius: 10px;
}
.nav ul {
    list-style: none;
    padding: 0;
    overflow: hidden;
}
.nav ul li {
    float: left;
    width: 20%;
    padding-top: 10px;
    text-align: center;
}
.nav ul li img {
    width: 60%;
}
.nav ul li p {
    margin: 5px 0 0;
}
.miaosha {
    margin: 10px;
    background-color: #fff;
    border-radius: 10px;
    padding-bottom: 5px;
}
.miaosha .h {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 35px;
    line-height: 35px;
    margin-bottom: 15px;
    background: url(../images/miaosha_bg.png) no-repeat left top;
    background-size: auto 35px;
}
.miaosha .h div span:nth-child(1) {
    font-size: 16px;
    margin-left: 10px;
    margin-right: 5px;
}
.miaosha .h div span:nth-child(2) {
    position: relative;
    color: crimson;
    padding-right: 20px;
    margin-right: 5px;
}
.miaosha .h div span:nth-child(2)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: url(../images/seckill-time-to.png) no-repeat left top;
    background-size: 20px;
}
.miaosha .h div span:nth-child(3) {
    color: crimson;
}
.miaosha .h p {
    position: relative;
    padding-right: 25px;
    margin-right: 5px;
}
.miaosha .h > p::after {
    content: "";
    position: absolute;
    right: 0;
    top: 7px;
    width: 20px;
    height: 20px;
    background: url(../images/arrow_rt.png) no-repeat left top;
    background-size: 20px;
}
.miaosha ul {
    overflow: hidden;
    padding: 0;
    list-style: none;
    margin: 0;
}
.miaosha ul li {
    float: left;
    width: 16.66%;
    text-align: center;
    color: crimson;
}
.miaosha ul li img {
    width: 60%;
}

.goods {
    margin-top: 15px;
}
.goods ul {
    overflow: hidden;
    padding: 0 10px;
}
.goods ul li {
    float: left;
    width: 48%;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    background-color: #fff;
}
.goods ul > li:nth-child(even) {
    margin-left: 4%;
}
.goods ul li img {
    width: 100%;
}
.goods ul li .desc {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.goods ul li p:nth-child(3) {
    margin-top: 5px;
    padding: 0 0 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.goods ul li p:nth-child(3) span:nth-child(1) {
    color: crimson;
}
.goods ul li p:nth-child(3) span:nth-child(2) {
    padding: 2px 0 2px 5px;
    background-color: #F0F2F5;
    color: #808080;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}